package com.ysd.salepromotion.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.ysd.common.entity.Product;
import com.ysd.salepromotion.entity.Active;
import com.ysd.salepromotion.entity.ActiveAllInfo;
import com.ysd.salepromotion.entity.MSProduct;
import com.ysd.salepromotion.param.in.QueryAllActiveRequestType;

public interface ActiveMapper {

	/**
	 * 插入活动信息
	 * @param active
	 * @return
	 */
	long insert(Active active);

	void updateActive(Active active);

	/**
	 * 分页查询活动信息
	 * @param request
	 * @return
	 */
	List<Active> queryActiveList(QueryAllActiveRequestType request);

	/**
	 * 查询所有的有效活动
	 * @return
	 */
	List<ActiveAllInfo> queryAllActivesGroup();

	void delActive(@Param("aId") long aId);

	void addProductList(MSProduct request);

	List<MSProduct> queryProListByAId(@Param("activeId") String activeId);

	List<MSProduct> queryMSProList();

	//int delMSProList(@Param("msPid") long msPid);
    
}